from web.model.base_model import *


class Admin(BaseModel):
    __abstract__ = False
    id = Column(Integer, primary_key=True, autoincrement=True, comment="超管编号")
    adminAccount = Column(String(32), nullable=False, comment="超管账号")
    passWord = Column(String(256), nullable=False, comment="超管账号密码")


class User(BaseModel):
    __abstract__ = False
    id = Column(Integer, primary_key=True, autoincrement=True, comment="用户编号")
    userAccount = Column(String(32), nullable=False, comment="用户账号")
    passWord = Column(String(256), nullable=False, comment="用户密码")
    root = Column(Integer, nullable=False, comment="用户权限")
